package algorithms;

/**
 * 
 * @author Emanuel Martins 5940, Ana Pontes 5950 || date 05/06/2014
 * 
 *         This is the class Node, sets a node and its parent node.
 * 
 */

public class Node
{
   private int h;
   private int g;
   private int f;
   private int parent;

   /**
    * This method
    * 
    * @param h
    *           -
    * @param g
    *           -
    * @param parent
    *           - the parent of the current node
    */

   public Node(int h, int g, int parent)
   {
      this.h = h;
      this.g = g;
      this.f = g + h;
      this.parent = parent;
   }

}
